package oop.core.med;
import java.util.*;
import oop.core.entity.*;
import oop.core.item.*;
import oop.core.map.Location;
import oop.core.visitors.*;

public class ItemPickupMediator{

	private Avatar avatar;
	private Map<Location,TakeableItem> map;
	
	public ItemPickupMediator(Avatar avatar, Map<Location,TakeableItem> map){
		this.avatar = avatar;
		this.map = map;
	}

	public void pickup(TakeableItem item){
		item.accept(new PickUpVisitor(avatar, map)); 
	}
	
}


